/* =============================================
 * Glassmorphic Grid Component Styles
 * =============================================
 */
.glass-grid-container {
    background-image: url('../../img/home\ page\ imgs/thomas-bennie-unsplash.jpg'); /* --- CUSTOMIZE BACKGROUND HERE --- */
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 40px;
    border-radius: 20px 20px 0 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1400px;
}

.glass-grid-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.glass-grid-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.glass-grid-item-heading {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.glass-grid-item-content {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease-out 0.5s, opacity 0.5s ease-out 0.5s, margin-top 0.5s ease-out 0.5s;
    margin-top: 0;
    overflow: hidden;
}

.glass-grid-item:hover .glass-grid-item-content {
    max-height: 200px; /* Adjust as needed */
    opacity: 1;
    margin-top: 16px;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, margin-top 0.5s ease-out;
}

.glass-grid-item-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glass-grid-item-content li {
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.glass-grid-item-content li:last-child {
    border-bottom: none;
}

/* Style the links normally */
.glass-grid-item-content li a {
    color: #000000;
    text-decoration: none;
    transition: text-shadow 0.3s ease, color 0.3s ease;
    display: block; /* Makes the anchor a block-level element */
    width: 100%; /* Ensures it takes the full width */
    height: 100%; /* Ensures it takes the full height of the parent li */
}

/* Apply the hover effect when the parent li is hovered over */
.glass-grid-item-content li:hover a {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    color: #fff;
}

/* New CSS rule for the centered item */
.glass-grid-item.full-width-item {
    grid-column: 1 / 3; /* This makes the card span both columns */
}

/* --- Glass Button Styles --- */
.glass-button-container {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin-top: 24px;
}

.glass-button {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-button:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* --- Responsive adjustments --- */
@media (max-width: 992px) {
    .glass-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .glass-grid-container {
        padding: 20px;
    }
    .glass-grid {
        grid-template-columns: 1fr;
    }
}